using System;
using System.Globalization;
using System.IO;
using System.Threading;
using System.Windows.Forms;

namespace template_dll//template_dll
{
	internal static class Program
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main(string[] args)
		{
			//Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");

			Application.CurrentCulture = CultureInfo.CurrentCulture;

			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);

			ChildForm mainForm = new ChildForm();

			if(args.Length > 0)
			{
				string pathToFile = args[0];
				if (!string.IsNullOrEmpty(pathToFile) && File.Exists(pathToFile))
					mainForm.OpenView(pathToFile);
			}

			Application.Run(mainForm);
		}
	}
}